﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ViewCustomers.aspx.cs" Inherits="IMS_WEB.ViewCustomers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">


    .auto-style5 {
        width: 78px;
    }
    .auto-style6 {
        width: 426px;
    }
        .style1
        {}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    厂商查询<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Button ID="Button5" runat="server" Text="查询" onclick="Button5_Click" />
&nbsp;<asp:HyperLink ID="HyperLink1" runat="server">高级查询</asp:HyperLink>
<br />
<br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        CssClass="style1"  Width="770px" 
        onrowcancelingedit="GridView1_RowCancelingEdit" 
        onrowdeleting="GridView1_RowDeleting" onrowediting="GridView1_RowEditing" 
        onrowupdating="GridView1_RowUpdating" DataKeyNames="index_id" 
        onrowcommand="GridView1_RowCommand" AllowPaging="True" 
        onrowdatabound="GridView1_RowDataBound">
        <Columns>
            <asp:BoundField DataField="index_id" HeaderText="index_id" Visible="False" />
            <asp:BoundField DataField="company_name" HeaderText="厂商名称" 
                SortExpression="company_name" />
            <asp:BoundField DataField="company_person" HeaderText="企业法人" 
                SortExpression="company_person" />
            <asp:BoundField DataField="company_address" HeaderText="地址" 
                SortExpression="company_address" />
            <asp:BoundField DataField="company_phone" HeaderText="电话" 
                SortExpression="company_phone" />
            <asp:BoundField DataField="remarks" HeaderText="备注" SortExpression="remarks" />
            <asp:ButtonField  Text="编辑" ButtonType="Link"  CommandName="编辑"/>
            <asp:CommandField ShowDeleteButton = "true" />
        </Columns>
    </asp:GridView>
<table style="width: 100%;">
    <tr>
        <td align="center" class="auto-style5">
            <asp:Button ID="Button4" runat="server" style="width: 78px" Text="添加单位" 
                onclick="Button4_Click" />
        </td>
        <td align="center" class="auto-style6">
            <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/NewCustomer.aspx">添加单位 </asp:HyperLink>
        </td>
        <td align="center">&nbsp;</td>
    </tr>
</table>
</asp:Content>
